package com.kaoshi.mapper;

import com.kaoshi.entity.Gl;
import com.kaoshi.entity.Person;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-10-25
 */
public interface PersonMapper extends BaseMapper<Person> {

    List<Person> yhgl(Gl gl);
    @Select("select p.whcd whcd,count(p.whcd) num from jm_person p group by p.whcd")
    List<Person> findAll();

    @Select("select p.sex sex,count(p.sex) num from jm_person p group by p.sex")
    List<Person> findAll1();

}
